package gao.xiaolei.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class JobInDtoBase {
    protected String group;

    protected String key;

    protected String description;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    protected LocalDateTime beginTime;

    public JobInDtoBase(String group, String key, String description, LocalDateTime beginTime) {
        this.group = group;
        this.key = key;
        this.description = description;
        this.beginTime = beginTime;
    }

    public JobInDtoBase() {
    }
}
